﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class webUserControl_menuTree : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Cookies aCookies = new Cookies();
        switch (aCookies.getCookies("cisType"))
        {
            case "1":
                TreeView1.Visible = true;
                break;
            case "2":
                TreeView2.Visible = true;
                break;
            case "3":
                TreeView3.Visible = true;
                break;
            case "4":
                TreeView4.Visible = true;
                break;
            case "5":
                TreeView5.Visible = true;
                break;
            default:
                break;
        }
        //TreeView1.Visible = true;
        //TreeView2.Visible = true;
        //TreeView3.Visible = true;
        //TreeView4.Visible = true;
        //TreeView5.Visible = true;
    }
}
